<?php
$class_home 	= "";
$class_property = "";
$class_news 	= "";
$class_faq      = "";
$class_search 	= "";
$class_intro    ="";
$class_projects ="";
$class_documents ="";
$class_contact  ="";
switch($params[0]) {

    case $CONFIG_MODULE["property"]: {
            $class_property = "class='current'";
            break;
    }case
    $CONFIG_MODULE["news"]  : {
            $class_news     = "class='current'";
            break;
    }case
    $CONFIG_MODULE["faq"]   : {
            $class_faq	    = "class='current'";
            break;
    }case
    $CONFIG_MODULE["intro"]   : {
            $class_intro	    = "class='current'";
            break;
    }case
    $CONFIG_MODULE["projects"]   : {
            $class_projects	    = "class='current'";
            break;
    }case
    $CONFIG_MODULE["documents"]   : {
            $class_documents	    = "class='current'";
            break;
    }case
    $CONFIG_MODULE["contact"]   : {
            $class_contact	    = "class='current'";
            break;
    }case
    $CONFIG_MODULE["search"]: {
            $class_search   = "class='current'";
            break;
    }case "": {
            $class_home     = "class='current'";
           break;
    }
    
}

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>[page_title]</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name = "keywords" content = "[meta_keyword]"/>
        <meta name = "description" content = "[page_title]. [meta_description]"/>

        <!--[if IE 6]>
        <style type="text/css">
        #menubar ul {display:inline-block;}
        #menubar ul {display:inline;}
        #menubar ul li {float:left;}
        #menubar {text-align:left;}
        </style>
        <link href="<?php echo SITE_CSS_URL; ?>/ie6.css" type="text/css" rel="stylesheet" />		
        <![endif]-->
        <!--[if gt IE 6]>
        <link href="<?php echo SITE_CSS_URL; ?>/real.css" type="text/css" rel="stylesheet" />
		
        <![endif]-->
        <!--[if !IE]>-->
        <link href="<?php echo SITE_CSS_URL; ?>/real.css" type="text/css" rel="stylesheet" />	
        <!--<![endif]-->
        
 		<link rel="stylesheet" href="<?php echo SITE_JS_URL; ?>/calendar/calendar-mos.css" type="text/css" title="green" media="all" />

        <link rel="stylesheet" href="<?php echo SITE_CSS_URL; ?>/thickbox.css" type="text/css" media="screen" />
        <link href="<?php echo SITE_CSS_URL; ?>/dropdown.css" type="text/css" rel="stylesheet" />
        <link href="<?php echo SITE_CSS_URL; ?>/default.advanced.css" type="text/css" rel="stylesheet" />
        <link href="<?php echo SITE_CSS_URL; ?>/popup.css" type="text/css" rel="stylesheet" />
        


        <script type="text/javascript" src="<?php echo SITE_JS_URL; ?>/jquery-1.3.2.min.js"></script>
        <script type="text/javascript" src="<?php echo SITE_JS_URL; ?>/jquery.js"></script>
        <script type="text/javascript" src="<?php echo SITE_JS_URL; ?>/jquery.dropdown.js"></script>
        <script type="text/javascript" src="<?php echo SITE_JS_URL; ?>/droplist.js"></script>
        <script type="text/javascript" src="<?php echo SITE_JS_URL; ?>/contentslider.js"></script>
        <script type="text/javascript" src="<?php echo SITE_JS_URL; ?>/unicode.js"></script>
        <script type="text/javascript" src="<?php echo SITE_JS_URL; ?>/jtip.js"></script>
        <script type="text/javascript" src="<?php echo SITE_JS_URL; ?>/thickbox-mini.js"></script>
           <script type="text/javascript" language="javascript" src="<?php echo SITE_JS_URL; ?>/calendar/calendar_mini.js"></script>
           <script type="text/javascript" language="javascript" src="<?php echo SITE_JS_URL; ?>/calendar/lang/calendar-en-GB.js"></script>
           <script type="text/javascript" language="javascript" src="<?php echo SITE_JS_URL; ?>/common.js"></script>
       
        <script type="text/javascript" src="<?php echo SITE_JS_URL; ?>/jquery.gmap-1.0.4-min.js"></script>
        <script src="<?php echo SITE_JS_URL; ?>/jquery.imageZoom.js" type="text/javascript"></script>
        <script type="text/javascript" language="javascript">
            jQuery(document.body).imageZoom();
        </script>


        <script type="text/javascript">
            var AJAX_PROCESS_URL = '<?php echo AJAX_PROCESS_URL; ?>';
        </script>       




    </head>

    <body >
       
        <div class="toppage">
            <div class="header">
                <div class="header_in">
                    <div id="logo" class="png"><a href="<?php echo SITE_URL; ?>" title="<?php echo SITE_URL; ?>"><img src="<?php echo SITE_IMAGES_URL; ?>/logo.gif" /></a></div>
                    <?php if(check_member_login()) {
                        ?>
                    <div class="topmenu"><a href="<?php echo get_link("member"); ?>">[Trang cá nhân của] <?php echo $_SESSION['login']['username'];?></a> | <a href="<?php echo get_link("member").'/'.$CONFIG_MEMBER_LINK['logout']; ?>">[Thoát]</a> | <a <a href="<?php echo get_link("member").'/'.$CONFIG_MEMBER_LINK['post-property'];?>">[Đăng tin]</a></div>
                    
                        <?php }else {
                        ?>
                    <div class="topmenu"><a href="<?php echo get_link("register"); ?>">[Đăng ký]</a> | <a href="<?php echo get_link("member"); ?>">[Đăng nhập]</a> | <a <a href="<?php echo get_link("member").'/'.$CONFIG_MEMBER_LINK['post-property-step1'];?>">[Đăng tin]</a></div>
                    
                        <?php
                        }
                        ?>
                </div>
                <div >

                    <ul class="dropdown dropdown-horizontal">
                        <li <?php echo $class_home; ?> ><span><a href="<?php echo SITE_URL; ?>" >[Trang chủ]</a></span></li>
                        <li <?php echo $class_intro; ?>>
                            <span><a href="<?php echo get_link("intro"); ?>" class="dir">[Giới thiệu]</a></span>
                            <ul>
                            <?php $rsintro=getIntroHeader();
                            while($rs=$db->fetch_array($rsintro)) {
                                    ?>
                                <li ><a href="<?php echo get_link("intro","detail",$rs['title_link']);?>"><?php echo htmlentities_utf8($rs["title"]);?></a></li>
                                    <? }?>
                            </ul>
                        </li>
                        <li <?php echo $class_news; ?> >
                            <span><a href="<?php echo get_link("news");?>" class="dir" >[Tin tức]</a></span>
                            <ul>
                            <?php $rsnewscate=getNewsCategory();
                            while($rs=$db->fetch_array($rsnewscate)) {
                                ?>
                                <li ><a href="<?php echo get_link("news","cat",$rs['cat_link']);?>"><?php echo htmlentities_utf8($rs["cat_title"]);?></a></li>
                                 <? }?>
                            </ul>
                        </li>
                        <li <?php echo $class_property; ?>><span><a href="<?php echo get_link("property"); ?>">[Sản phẩm giao dịch]</a></span></li>
                        <li <?php echo $class_projects; ?> ><span><a href="<?php echo get_link("projects"); ?>"  >[Thông tin dự án]</a></span></li>
                        <li <?php echo $class_documents; ?> ><span><a href="<?php echo get_link("documents"); ?>" >[Văn bản luật]</a></span></li>
                        <li <?php echo $class_faq; ?> ><span><a href="<?php echo get_link("faq"); ?>" >[Hỏi đáp]</a></span></li>
                        <li <?php echo $class_contact; ?> ><span><a href="<?php echo get_link("contact"); ?>" >[Liên hệ]</a></span></li>
                        
                    </ul>
                    <div class="language">|&nbsp;<a href="<?php echo SITE_URL;?>/lang.php?pos=<?php echo $_GET['params'];?>"><img align="absmiddle"  src="<?php echo SITE_IMAGES_URL; ?>/[en.gif]">&nbsp;[English]</a></div>





                </div>
            </div>
            </div>
            <div id="container" class="container">

